/*using UnityEngine;
using System.Collections;

public class DungeonBSPNode : MonoBehaviour {
	public Rect Cells;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		
		
	}
	
	public void GenerateMap()
		{
			 Cells = new Cell[MapWidth, MapHeight];
			 TreeStructure = PartitionDungeon();
			 TreeStructure.EnumerateLeafNodes(new AddRoomDelegate(AddRoom));
		}
	
	public DungeonBSPNode PartitionDungeon()
        {
			DungeonBSPNode.rand = rand;
			DungeonBSPNode rootNode = new DungeonBSPNode(0.0f, 0.0f, 1.0f, 1.0f);
			rootNode.Partition();
        	return rootNode;
		}

}*/
